package com.mapper;

import com.pojo.Order;
import com.pojo.Raising;
import com.pojo.UserOrder;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author Zhengjz
 * @version 1.0
 * @className OrderMapper
 * @date 2021/3/2 15:33
 */
@Repository
public interface OrderMapper {

    //添加宠物饲养的天数
    int addTianShu(String date);

    //添加用户购买的套餐
    int addOrder(Order order);


    //根据id查询饲养师发布的订单
    List<Order> findById(String rId);


    //用户购买套餐
    int updateOrder(Order order);

    //(用户)查看我的订单
    List<Order> findOrder(Integer userId);

    //(饲养时)查看我的订单
    List<Order> rfindOrder(Integer userId);

    //饲养师完成订单
    int rrrOrder(String orderId);
    //添加饲养师发布的套餐
    int raddOrder(String tuozhan);

    //查询饲养师id
    Raising selRa(String userId);

    //写入饲养师id
    int addRaId(Order order);
}
